package fitness

import (
	"fitness/internal/entity"
)

// Detail 对应数据库中的健身课程预约表结构
type Detail struct {
	entity.Model
	FitnessDate *int    `json:"fitnessDate" gorm:"column:fitness_date;type:int;comment:'预约日期'"`
	Name        *string `json:"name" gorm:"column:name;type:varchar;comment:'课程名称'"`
	MaxPeople   *int    `json:"maxPeople" gorm:"column:max_people;type:int;comment:'最大人数'"`
	StartTime   *string `json:"startTime" gorm:"column:start_time;type:varchar;comment:'开始时间'"`
	EndTime     *string `json:"endTime" gorm:"column:end_time;type:varchar;comment:'结束时间'"`
	IsDeleted   *uint8  `json:"isDeleted" gorm:"column:is_deleted;type:int;comment:'删除'"`
}

// TableName 设置表名
func (Detail) TableName() string {
	return "fitness_detail" // 替换为实际的数据库表名
}
